Remove "buffer half full" check from guest_console_write
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Sep 2009 08:26:04 +0000 (09:26 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 16 Sep 2009 08:26:04 +0000 (09:26 +0100)
Checks are made at a lower level in the serial code, and teh policy
there is to drop rather than wait. So boot makes progress even when
serial hardware is problematic.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
xen/drivers/char/console.c

index a12a6caf7192a923435c6fc5e135a38a1ecf9f42..dd615b6732a4ab40a8221bba5f18dcdca60ae524 100644 (file)
@@ -332,13 +332,6 @@ static long guest_console_write(XEN_GUEST_HANDLE(char) buffer, int count)
 
     while ( count > 0 )
     {
-        while ( serial_tx_space(sercon_handle) < (serial_txbufsz / 2) )
-        {
-            if ( hypercall_preempt_check() )
-                break;
-            cpu_relax();
-        }
-
         if ( hypercall_preempt_check() )
             return hypercall_create_continuation(
                 __HYPERVISOR_console_io, "iih",